const notFound = () =>
    import ('@/view/default/404');
const login = () =>
    import ('@/view/backStage/login/index.vue');
const register = () =>
    import ('@/view/backStage/register/index.vue');

let defaultRouter = [
    //登录
    {
        path: '/login',
        component: login,
        meta: {
            title: "注册",
            roles: [],
            keepAlive: false,
        }
    },
    //注册
    {
        path: '/register',
        component: register,
        meta: {
            title: "登录",
            roles: [],
            keepAlive: false,
        }
    },
    {
        path: '/404',
        name: '404',
        component: notFound
    },
    {
        path: '*',
        redirect: '/404',
        hidden: true
    },
]
export default defaultRouter